package com.aaa.doctor.feign.system.factory;

import com.aaa.doctor.feign.system.DictDataFeign;
import com.aaa.entity.DictData;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author MuChengGuo
 * @date 2023/3/27 14:59
 * Description: TODO
 **/
//@Component
//public class DictDataFactory implements FallbackFactory<DictDataFeign> {
//
//    @Override
//    public DictDataFeign create(Throwable throwable) {
//        return new DictDataFeign() {
//            @Override
//            public List<DictData> findByType(String type) {
//                DictData dictData = new DictData();
//                dictData.setDictLabel("系统服务器忙碌......");
//
//                return dictData;
//            }
//        };
//    }
//}
